package com.bee.bootstrap.system.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.bee.bootstrap.system.entity.Dictionary;
import com.bee.common.core.result.Result;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liekkas
 * @since 2018-04-10
 */
public interface IDictionaryService extends IService<Dictionary> {

    Result findPageView(Page<Dictionary> page, Dictionary dictionary);

    Result addDictionary(Dictionary dictionary);

    Result updateDictionary(Dictionary dictionary);

    Result deleteDictionary(Long id);

    Result selectTreeView();

    Result selectFormDictionary();

    Result selectFormTypeDictionarySub(Long parentId);

    List selectFormTypeDictionarySub(Collection ids);

    Dictionary findByParentAndValue(List<Dictionary> dictionaries,Long parentId,String value);

    List<Dictionary> findCheckBoxElement(List<Dictionary> dictionaries,Long parentId,String value);

    Result findTranslate(String text);

    Result findInterfaceResource(Long id);
}
